package com.itheima.common;

public class PageResults {

    //总记录数
    private Integer counts;

    //页大小
    private Integer pagesize;

    //总页数
    private Integer pages;

    //当前页码
    private Integer page;

    //数据列表
    private Object list;

    public PageResults() {
    }

    public PageResults(Integer counts, Integer pagesize, Integer pages, Integer page, Object list) {
        this.counts = counts;
        this.pagesize = pagesize;
        this.pages = pages;
        this.page = page;
        this.list = list;
    }

    public Integer getCounts() {
        return counts;
    }

    public void setCounts(Integer counts) {
        this.counts = counts;
    }

    public Integer getPagesize() {
        return pagesize;
    }

    public void setPagesize(Integer pagesize) {
        this.pagesize = pagesize;
    }

    public Integer getPages() {
        return pages;
    }

    public void setPages(Integer pages) {
        this.pages = pages;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Object getList() {
        return list;
    }

    public void setList(Object list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "PageResult{" +
                "counts=" + counts +
                ", pagesize=" + pagesize +
                ", pages=" + pages +
                ", page=" + page +
                ", list=" + list +
                '}';
    }
}
